﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace KpiConfigProject.ChildForm
{
    public partial class GridSearchFrm : Form
    {
        public GridSearchFrm()
        {
            InitializeComponent();
            //this.Closing += new CancelEventHandler(GridSearchFrm_Closing);
            //this.FormClosing += new FormClosingEventHandler(GridSearchFrm_FormClosing);
            tb_Search.Text = "";
        }

        public string SearchText
        {
            set { tb_Search.Text = value; }
        }

        public event EventHandler SearchTextChanged;

        private void tb_Search_TextChanged(object sender, EventArgs e)
        {
            if (SearchTextChanged != null)
                SearchTextChanged.Invoke(tb_Search.Text, e);
        }
    }
}
